#pragma once


#include "Pages/EditorPageViewModel.h"
#include "EditorCPUTimeAnalyzePageModel.h"
#include "EditorCPUTimeAnalyzePageViewModel.m.h"


RCLASS()
class REditorCPUTimeAnalyzePageViewModel : public REditorPageViewModel 
{
    ROBJECT

public:
    void BindModel(TSharedObjectPtr<REditorPageModel> InModel) override;
    TSharedObjectPtr<RTexture2D> GetIcon() const override;
    CString GetTitle() const override;

    void Start();
    bool CanStart() const;

    void Stop();
    bool CanStop() const;

    CString GetStateText() const;
protected:
    TSharedObjectPtr<RTexture2D> Icon;
    TWeakObjectPtr<REditorCPUTimeAnalyzePageModel> Model;

};
